#pragma once

/**
 * 静态成员函数, 不能访问 this 指针.
 */

extern "C"
{
#include "lua.h"
}

class luaapi
{
public:
    static void Register(lua_State *luastate);

    static int newservice(lua_State *luastate);
    static int killservice(lua_State *luastate);
    static int send(lua_State *luastate);

    static int Listen(lua_State *luastate);
    static int closeconn(lua_State *luastate);
    static int Write(lua_State *luastate);
};